package com.xmler.plugin.adbrocket.bean

import com.android.ddmlib.IDevice

class ComboDeviceBean(val device: IDevice?) {
    val name: String
        get() =
            device?.let {
                StringBuilder(it.getProperty("ro.product.manufacturer")).append(" ")
                    .append(it.getProperty(IDevice.PROP_DEVICE_MODEL))
//                    .append(" Android ")
//                    .append(it.getProperty(IDevice.PROP_BUILD_VERSION))
//                    .append(", API " + it.getProperty(IDevice.PROP_BUILD_API_LEVEL))
                    .toString()
            } ?: ""
}